﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Jinjia.Approve.Model.VM;
using Jinjia.Approve.Model.VM.JJFlow;
using Jinjia.Approve.Model.VM.JJFlow.DTO;

namespace Jinjia.Approve.IService.JJFlow.Action
{
    public interface IJJFLowActionCommon
    {
        /// <summary>
        /// 查询轨迹
        /// </summary>
        /// <param name="biz_order_id"></param>
        /// <param name="modular_key"></param>
        /// <returns></returns>
        Task<List<JjFlowTrackVM>> GetFlowTrackList(string biz_order_id, string modular_key);


        /// <summary>
        /// 根据业务申请ID查询审批流已完成审核的节点人员信息
        /// </summary>
        /// <returns></returns>
        Task<List<EmpInfo>> GetCompletedNodeList(JjFlowInstanceVM instance);

        /// <summary>
        /// 记录 模块查阅日志
        /// </summary>
        /// <param name="doc_model"></param>
        /// <param name="biz_order_id"></param>
        /// <param name="user_id"></param>
        /// <returns></returns>
        Task<int> RecordViewLog(string doc_model, string biz_order_id, int user_id);

        /// <summary>
        /// 根据业务模块ID和业务单据ID查询日志
        /// </summary>
        /// <param name="doc_model"></param>
        /// <param name="biz_order_id"></param>
        /// <returns></returns>
        Task<List<ErpaViewedLogViewModel>> GetViewedLog(string doc_model, string biz_order_id);
    }
}